package com.lihao.sam.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Qinheyun
 * @Description: 维修验收统计
 */
@Data
@NoArgsConstructor
public class MaintenanceExamineStatisticsDto {
    /** 序号*/
    private Integer id;

    /** 报修单号*/
    private String repairsMark;

    /** 地址*/
    private String location;

    /** 报修人*/
    private String repairsName;

    /** 学号*/
    private String studentId;

    /** 报修时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date repairsTime;

    /** 接待人*/
    private String receiverName;

    /** 报修原因*/
    private String cause;

    /** 状态  0已处理 1未处理*/
    private Integer state;

    /** 序号*/
    private Integer eid;

    /** 验收情况*/
    private String situation;

    /** 验收人*/
    private String inspectName;

    /** 验收时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date etime;

    public MaintenanceExamineStatisticsDto(String repairsMark, String location, String repairsName, String studentId, Date repairsTime, String receiverName, String cause, Integer state, Integer eid, String situation, String inspectName, Date etime) {
        this.repairsMark = repairsMark;
        this.location = location;
        this.repairsName = repairsName;
        this.studentId = studentId;
        this.repairsTime = repairsTime;
        this.receiverName = receiverName;
        this.cause = cause;
        this.state = state;
        this.eid = eid;
        this.situation = situation;
        this.inspectName = inspectName;
        this.etime = etime;
    }
}
